<template>
  <div class="overview-test">
    <h2>概览卡片组件测试</h2>
    
    <div class="overview-grid">
      <OverviewCard 
        title="总销售额" 
        :value="125678.56" 
        :growth="12.5" 
        icon="fa-dollar-sign"
        :currency="true"
      />
      
      <OverviewCard 
        title="订单数量" 
        :value="8659" 
        :growth="-3.2" 
        icon="fa-shopping-bag"
      />
      
      <OverviewCard 
        title="分销商数量" 
        :value="452" 
        :growth="8.7" 
        icon="fa-users"
      />
      
      <OverviewCard 
        title="客户数量" 
        :value="12450" 
        :growth="15.8" 
        icon="fa-user-friends"
      />
    </div>
  </div>
</template>

<script setup lang="ts">
import OverviewCard from './OverviewCard.vue';
</script>

<style lang="scss" scoped>
.overview-test {
  padding: 24px;
  background-color: #f8f9fa;
  
  h2 {
    margin-bottom: 24px;
    font-size: 20px;
    color: #2f3542;
  }
  
  .overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .overview-test {
    padding: 16px;
    
    h2 {
      font-size: 18px;
      margin-bottom: 16px;
    }
    
    .overview-grid {
      gap: 16px;
    }
  }
}
</style> 